<template>
  <div class="CompanyCard">
    <div class="company clearfix">
      <van-image fit="cover" :src="companyInfo.img" />
      <div class="centenbox">
        <div class="company_name">{{companyInfo.companyName}}</div>
        <div class="company_motto">{{companyInfo.motto}}</div>
        <ul class="company_label">
          <li v-for="(item,index) in companyInfo.label" :key="index">{{item}}</li>
        </ul>
      </div>
    </div>
    <div class="address">
      {{companyInfo.address}}
    </div>
  </div>
</template>

<script>
export default {
  name: 'CompanyCard',
  props: {
    companyInfo: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped lang="less">
.CompanyCard {
  .company {
    padding: 2 * 17px 2 * 16px;
    background-color: #fff;
    .centenbox {
      float: left;
      .company_name {
        font-size: 28px;
        color: #000;
        font-weight: 700;
        margin-bottom: 26px;
      }
      .company_motto {
        color: #979191;
        font-size: 24px;
        margin-bottom: 26px;
      }
      .company_label {
        color: #3f51b5;
        font-size: 20px;
        display: flex;
        justify-content: center;
        li {
          border: 2px solid #3F51B5;
          padding: 8px 28px;
          border-radius: 30px;
          margin: 0 8px;
        }
      }
    }
    .van-image {
      float: left;
      width: 2 * 80px;
      height: 2 * 86px;
      padding-right: 22px;
    }
  }
  .address {
    //   text-align: center;
    color: #979191;
    font-size: 24px;
    padding: 0 32px;
    background-color: #fff;
    padding-bottom: 26px;
  }
  .clearfix:before,
  .clearfix:after {
    content: '';
    display: table;
  }
  .clearfix:after {
    clear: both;
  }
  /* ie6 7 专门清除浮动的样式*/
  .clearfix {
    *zoom: 1;
  }
}
</style>
